﻿<controls:MovableWindow
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:iTuner"
  xmlns:controls="clr-namespace:iTuner.Controls"
  xmlns:resx="clr-namespace:iTuner.Properties"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
  x:Class="iTuner.MessageWindow"
  x:ClassModifier="internal"
  x:Name="MessageBoxWindow"
  Title="Message"
  WindowStyle="None"
  MinHeight="110" MinWidth="420"
  MaxWidth="540"
  SizeToContent="Height"
  ResizeMode="NoResize"
  AllowsTransparency="True"
  Background="Transparent"
  WindowStartupLocation="CenterScreen"
  Topmost="True"
  ShowInTaskbar="False" d:DesignWidth="540">

	<controls:MovableWindow.Resources>
		<Style TargetType="{x:Type TextBlock}">
			<Setter Property="FontSize" Value="12"/>
			<Setter Property="FontFamily" Value="Calibri"/>
			<Setter Property="Margin" Value="0,0,5,0"/>
			<Setter Property="VerticalAlignment" Value="Center"/>
		</Style>
	</controls:MovableWindow.Resources>

	<Border
    x:Name="mainBorder" CornerRadius="5" Padding="1" Margin="0,0,8,8"
    Background="{StaticResource iTunesOutline}">
		<Border.Effect>
			<DropShadowEffect BlurRadius="6" ShadowDepth="6" Opacity="0.30"/>
		</Border.Effect>

		<Border
      CornerRadius="5" Padding="0"
      Background="{StaticResource iTunesBackground}">

			<DockPanel Margin="5,5,5,10">

				<local:DetailPanel x:Name="detailPanel" Margin="0,0,0,6" DockPanel.Dock="Top">
					<TextBlock
            x:Name="titleBlock"
            Text="{x:Static resx:Resources.I_ApplicationTitle}" FontWeight="Bold" Background="Transparent" />
				</local:DetailPanel>

				<Grid x:Name="LayoutRoot">
					<Grid.RowDefinitions>
						<RowDefinition Height="*" />
						<RowDefinition Height="Auto" />
					</Grid.RowDefinitions>

					<StackPanel>
						<Border
              x:Name="ControlPanel"
              BorderThickness="1" BorderBrush="#D5DFE5"
              CornerRadius="3" Margin="10,10,10,10" Padding="6">
							<DockPanel LastChildFill="True">
								<Image
                  x:Name="imageBox"
                  DockPanel.Dock="Left" Width="40" Height="40" VerticalAlignment="Top" />
								<ScrollViewer
                  VerticalScrollBarVisibility="Auto">
									<TextBlock
                    x:Name="messageBox" Margin="20,10,10,10"
                    TextWrapping="Wrap"
                    Text="hello world" />
								</ScrollViewer>
							</DockPanel>
						</Border>

						<TextBox
              x:Name="logBox"
              Height="120" Width="500"  Margin="10,10,10,10"
              IsReadOnly="True" Visibility="Collapsed"
              FontFamily="Verdana" FontSize="10"
              TextWrapping="NoWrap"
              VerticalScrollBarVisibility="Auto"
              HorizontalScrollBarVisibility="Auto" />
					</StackPanel>

					<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,10">
						<Button
              x:Name="yesButton"
              Content="{x:Static resx:Resources.Yes}" Width="70" Padding="0" Margin="0,0,8,0"
              Style="{StaticResource iButtonStyle}" Click="DoYes" />
						<Button
              x:Name="noButton"
              Content="{x:Static resx:Resources.No}" Width="70" Padding="0" Margin="0,0,8,0"
              Style="{StaticResource iButtonStyle}" Click="DoNo" />
						<Button
              x:Name="cancelButton"
              Content="{x:Static resx:Resources.CancelButton}" Width="70" Padding="0" Margin="0,0,10,0"
              Style="{StaticResource iButtonStyle}" Click="DoCancel" IsCancel="True" />
					</StackPanel>

				</Grid>
			</DockPanel>
		</Border>
	</Border>
</controls:MovableWindow>